import React, { Component } from 'react'
//导入子组件
import Child from './Child'
export default class App extends Component {
  render() {
    let obj = {
      name: '张三',
      age: 23,
      sex: true
    }
    return (
      <div>
        {/* 调用子组件 */}
        <Child {...obj}></Child>
      </div>
    )
  }
}
